﻿using System.Windows.Controls;
using System.Windows.Controls.Primitives;

namespace Minotaur.App.Modules.SystemSet.Views
{
    /// <summary>
    /// Interaction logic for InfoPath
    /// </summary>
    public partial class InfoPath : UserControl
    {
        public InfoPath()
        {
            InitializeComponent();
        }

        private void thumb_DragStarted(object sender, System.Windows.Controls.Primitives.DragStartedEventArgs e)
        {

        }

        private void thumb_DragCompleted(object sender, System.Windows.Controls.Primitives.DragCompletedEventArgs e)
        {

        }

        private void thumb_DragDelta(object sender, System.Windows.Controls.Primitives.DragDeltaEventArgs e)
        {
            
            double nTop = Canvas.GetTop(startBtn) + e.VerticalChange;
            double nLeft = Canvas.GetLeft(startBtn) + e.HorizontalChange;
            Canvas.SetLeft(startBtn, nLeft);
            Canvas.SetTop(startBtn, nTop);
        }
    }
}
